import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public interface TestInterface {
    //成员变量默认static
    public String name="1";
    public static int age=0;
    //抽象方法（）相当于公共标准的意思
    void draw();//不能有具体实现，默认Publid abstract
    //从java8开始提供default来支持方法具体实现
    /*default public void func(){
        System.out.println("hello");
    }*/
    public static void fun1(){
        System.out.println("类名直接调用方法");
    }
}
class Rect implements TestInterface{
    public void draw(){
        System.out.println("矩形");
    }
}
class Flower implements  TestInterface{
    public void draw(){
        System.out.println("花");
    }
}
